package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 租房管理对象 rental_management
 * 
 * @author ruoyi
 * @date 2024-05-11
 */
public class RentalManagement extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 房源主键信息 */
    @Excel(name = "房源主键信息")
    private Long houseInfoId;

    /** 用户主键 */
    @Excel(name = "用户主键")
    private Long userId;

    /** 合同起始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "合同起始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date contractStartDate;

    /** 合同结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "合同结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date contractEndDate;

    /** 租金 */
    @Excel(name = "租金")
    private String rent;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setHouseInfoId(Long houseInfoId) 
    {
        this.houseInfoId = houseInfoId;
    }

    public Long getHouseInfoId() 
    {
        return houseInfoId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setContractStartDate(Date contractStartDate) 
    {
        this.contractStartDate = contractStartDate;
    }

    public Date getContractStartDate() 
    {
        return contractStartDate;
    }
    public void setContractEndDate(Date contractEndDate) 
    {
        this.contractEndDate = contractEndDate;
    }

    public Date getContractEndDate() 
    {
        return contractEndDate;
    }
    public void setRent(String rent) 
    {
        this.rent = rent;
    }

    public String getRent() 
    {
        return rent;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("houseInfoId", getHouseInfoId())
            .append("userId", getUserId())
            .append("contractStartDate", getContractStartDate())
            .append("contractEndDate", getContractEndDate())
            .append("rent", getRent())
            .append("status", getStatus())
            .toString();
    }
}
